package cn.mill.demo.open;

import cn.mill.common.HttpMethod;
import cn.mill.common.Tag;
import cn.mill.common.annotation.HttpDefine;
import cn.mill.common.annotation.MethodMapping;
import cn.mill.common.annotation.Property;
import cn.mill.common.annotation.ServiceDefine;

@ServiceDefine(name = "WeatherApi", node = "weather", protocol = "http", strategy = "xml")
public interface WeatherApi {
	@HttpDefine(method = HttpMethod.GET)
	@MethodMapping(value = "/WeatherApi?city={city}", tip = "通过城市名字获得天气数据")
	public Report weather(@Property(name = "city", tag = Tag.URL) String city);
}
